package com.jz.jd.rest.response;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/3/2.
 */

public class Goods implements Serializable{

    public String goods_name;
    public String goods_price;
    public String goods_id;
    public String goods_imgs;
    public String goods_icon;
    public String style_color;
    public String style_size;
    public String goods_inventory;
    public int style_price;
    public String goods_style_id;
    public String sku_code;
    public String goods_sale_num = "1";
    public boolean select = false;

    public String getGoods_imgs() {
//        System.out.println("goods_imgs   "  +   goods_imgs);
//        System.out.println("goods_imgs   "  +   goods_imgs.split(",").length);
//        System.out.println("goods_imgs   "  +   goods_imgs.split(",")[0]);
        if (goods_imgs == null)
            return "";
        else
            return goods_imgs.split(",")[0];
    }
}
